#ifndef	_REGDWORD_EDITOR_H_
#define	_REGDWORD_EDITOR_H_

#include <glibmm/ustring.h>
#include <gtkmm/dialog.h>

namespace Gtk {
	class Entry;
	class RadioButton;
}

class Regdword_Editor : public Gtk::Dialog
{
public:
	//typedef unsigned int DWORD;
	enum Last_Base_State {
		HEX_BASE,
		DEC_BASE
	};
	Regdword_Editor(const Glib::ustring & val_name, unsigned val_data);
	//Regdword_Editor(const Glib::ustring & val_name, const Glib::ustring & val_data);
	virtual ~Regdword_Editor();
	unsigned int get_result() const;
	bool	is_modify() const;
	
private:
	Regdword_Editor();
	void on_text_activate();
	void on_radio_button_clicked();

	Last_Base_State last_base_;
	Gtk::Entry	* edit_data_;
	Gtk::RadioButton * base_hex_;
	Glib::ustring origin_data_;
};

#endif
